import request from '@/utils/request';

export function getChatlist(params) {
	return request({
		url: '/mall/message/list',
		method: 'get',
		params,
	});
}
export function getChatRecord(data) {
	return request({
		url: '/mall/message/record',
		method: 'post',
		data,
	});
}
export function clearUnread(id) {
	return request({
		url: '/mall/message/clear-unread/' + id,
		method: 'get',
	});
}
